package com.yuanrui.subject.domain.convert;

import com.yuanrui.subject.domain.entity.SubjectInfoBO;
import com.yuanrui.subject.domain.entity.SubjectOptionBO;
import com.yuanrui.subject.infra.basic.entity.SubjectBrief;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 题目标签表(SubjectLabel)转换器
 */
@Mapper
public interface SubjectBriefConvert {
    SubjectBriefConvert INSTANCE = Mappers.getMapper(SubjectBriefConvert.class);

    //BO转Entity
    SubjectBrief convertToEntity(SubjectInfoBO subjectInfoBO);

    //Entity转BO
    SubjectInfoBO convertToInfoBo(SubjectBrief subjectBrief);

    //optionToBo
    SubjectInfoBO convertToOptionBo(SubjectOptionBO subjectOptionBO);

}
